package top.infopub.mgr.fia.dao;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.Page;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.fia.domain.OrgBudgetDomain;
import top.infopub.mgr.fia.vo.OrgBudgetVo;
import top.infopub.model.fia.OrgBudget;

/** 公司费用预算(FIA_ORG_BUDGET) **/
public interface OrgBudgetDao extends GenericDao<OrgBudget, String> {

    Page<OrgBudgetDomain> selectByDomainWhere(OrgBudgetVo orgBudgetVo);

    OrgBudgetVo selectById(String id);

    void insertById(OrgBudgetVo orgBudget);

    /**
     * 判断是否存在同一公司名称、同一预算年度已有生效中单据
     */
    int count(@Param("belongsYear")Integer belongsYear,@Param("hrOrgBillId")String hrOrgBillId);
	
}